#include <stdio.h>
/*
* I_2.c
*
*  Created on: April, 19, 2009
*      Author: yimingliu@fudan.edu.cn
*/

void funI_2_fun(long s, long* t)
{
	long sl=10;
	s/=10;
	*t=s%10;
	while(s>0)
	{
		s=s/100;
		*t=s%10*sl+*t;
		sl=sl*10;
	}
}

void funI_2()
{
	long s,t;
	printf("\nPlease enter s: ");
	scanf("%ld",&s);
	funI_2_fun(s,&t);
	printf("The result is: %ld\n",t);
}